<?php
/**
 * DotHerbert
 *
 * @copyright  2009 extreme-programmers
 * @license    http://dotherbert.extreme-programmers.com/license   BSD License
 * @version    $Id: TestHelper.php 102 2009-05-13 17:19:29Z johannes.trink@extreme-programmers.com $
 */

$tests   = dirname(__FILE__);
$root    = dirname($tests);
$library = $root . DIRECTORY_SEPARATOR . 'library';

set_include_path($tests . PATH_SEPARATOR . $library . PATH_SEPARATOR . get_include_path());


require_once 'dotherbert/loader/Autoloader.php';
require_once 'dotherbert/loader/DefaultAutoloader.php';
require_once 'dotherbert/loader/DeprecatedAutoloader.php';


$loader = dotherbert\loader\Autoloader::getInstance();
$defaultLoader = new dotherbert\loader\DefaultAutoloader();
$deprecatedLoader = new dotherbert\loader\DeprecatedAutoloader();
$loader->addAutoloader($defaultLoader);
$loader->addAutoloader($deprecatedLoader);

unset($tests, $root, $library, $namespaces);